import { Navigate } from 'react-router-dom'
import { lazy } from 'react'

//案件上报
const CaseReport = lazy(() => import('../view/caseReport'))
//上报结果
const ReportResults = lazy(() => import('../view/reportResults'))



const element = [
	{
		path: 'caseReport',
		element: <CaseReport />
	},
	{
		path: 'reportResults',
		element: <ReportResults />
	},
	//严格模式，去掉缺省
	{
		path: '/',
		element: <Navigate to='caseReport' />
	}
]


export default element;
